package com.macro.mall.tiny.modules.pms.service.impl;

import com.macro.mall.tiny.modules.pms.model.PmsCoolTool;
import com.macro.mall.tiny.modules.pms.mapper.PmsCoolToolMapper;
import com.macro.mall.tiny.modules.pms.model.PmsCoolToolUpdateGroupDTO;
import com.macro.mall.tiny.modules.pms.service.PmsCoolToolService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author tyrone
 * @since 2024-10-09
 */
@Service
public class PmsCoolToolServiceImpl extends ServiceImpl<PmsCoolToolMapper, PmsCoolTool> implements PmsCoolToolService {

    @Autowired
    private PmsCoolToolMapper baseMapper;

    public void saveCoolTool(List<PmsCoolTool> coolTools) {
        baseMapper.saveCoolTool(coolTools);
    }

    @Override
    public void updateGroup(PmsCoolToolUpdateGroupDTO dto) {
        baseMapper.updateGroup(dto);
    }
}
